Customizable ASIC with substantially non-customizable portion that supplies pixel data to a mask-programmable portion in multiple color space formats

ABSTRACT

An integrated circuit has a substantially non-customizable hardware portion and a mask-programmable logic portion. An image processing function common to many different makes and models of a type of electronic consumer device (for example, an image display device) is performed by the substantially non-customizable hardware portion. The substantially non-customizable hardware portion also outputs pixel data in both a first color space format and a second color space format. The mask-programmble logic portion can be mask-programmed for an individual manufacturer of electronic consumer devices such that the mask-programmable logic portion performs an additional special function specific to the electronic consumer devices of the individual manufacturer. Certain functions are better or more easily performed on pixel data in one color space format than another. Pixel data is therefore supplied to the mask-programmable hardware portion in multiple different color space formats, or in a selectable one of multiple different color space formats.

CROSS REFERENCE TO RELATED APPLICATION

This application is a continuation-in-part of, and claims the benefitunder 35 U.S.C. §120 of, U.S. patent spplication Ser. No. 10/235,628, byChan et al., entitled “Display Processor Integrated Circuit With On-ChipProgrammable Logic For Implementing Custom Enhancement Functions,” filedSep. 4, 2002 (the subject matter of the above-identified patentapplication is incorporated herein by reference).

FIELD OF THE INVENTION

This application relates to application specific integrated circuits(ASICs) for use in electronic consumer devices, and more particularly toan ASIC that has a mask-programmable gate array portion and that issuitable for use in high volume production of electronic consumerdevices.

BACKGROUND INFORMATION

The manufacture of electronic consumer devices is generally a very costsensitive endeavor. Even a small reduction in manufacturing cost canresult in a large savings when millions of units are manufactured. Whereconsumers have the option of purchasing competing electronic consumerdevices with similar functionalities, price competition can be extreme.In such situations, having an ability to reduce manufacturing cost inrelation to the manufacturing cost of the competition is especiallydesirable. Most of the reduced manufacturing cost can be passed on tothe consumer, thereby resulting in increased sales and therefore alsoprofits for the manufacturer. Alternatively, the bulk of the savings inmanufacturing cost can be retained as increased profits for themanufacturer.

Consider one specific example in which the type of electronic consumerdevice is a television. Even though there are many different styles andmodels of televisions, many televisions have very similar electroniccomponents within them. Each individual television manufacturergenerally wants to incorporate his own special enhancement features intohis televisions to differentiate his televisions from the televisions ofthe competition, but most of the functionality of the differenttelevisions on the market is often identical. Due to economies of scale,the integrated circuits that make up the electronics of the televisionscan generally be manufactured for a smaller unit cost when they aremanufactured in larger volumes. It is therefore sometimes desirable forthe televisions of different manufacturers to be made from a common setof electronics parts such that the electronics parts can be made inhigher volumes and so that the per unit cost of the electronics partscan be reduced.

If televisions are to be made from common electronic parts, then aproblem remains of how to provide each manufacturer the ability toprovide his own special enhancement features. One manufacturer may wantto provide one special enhancement feature, whereas another manufacturermay want to provide a different special enhancement feature. Televisionmanufacturers generally consider the enhancement features proprietarybecause the inclusion of these enhancement features may in the eyes ofconsumers help differentiate the electronic consumer device of onemanufacturer from all other electronic consumer devices on the market.

One potential solution might be to provide the common functionality inthe form of a common integrated circuit. Due to the use of the commonintegrated circuit across multiple different makes and models of theelectronic consumer device, the per unit cost of providing the commonfunctionality might be reduced. The custom functionality would, on theother hand, be provided by including a field programmable gate array(FPGA) into each electronic consumer device that is to have a specialenhancement feature. The FPGA would be relatively expensive, but itwould be programmable in accordance with the particular needs of eachindividual manufacturer. Not only would including the separate FPGAintegrated circuit in each electronic consumer device be expensive, butthe intercommunication between the FPGA and the common integratedcircuit might require a large number of input/output terminals (I/Oterminals), thereby further increasing system cost. A better solution isdesired.

Another potential solution might be to integrate the circuitry thatperforms the common functionality along with an amount of programmablelogic. The programmable logic would be usable by each individualmanufacturer to realize that manufacturer's special enhancement feature.This integration would reduce the cost associated with providingintercommunication between the common functionality part and theprogrammable logic part, but the amount of integrated circuit area usedto realize the programmable logic part would be relatively large. If,for example, the programmable logic part would be realized as anantifuse-based FPGA technology, then the circuitry would be undesirablylarge due to the need to have large programming transistors. Largeprogramming transistors are generally needed to supply programmingcurrents needed to program antifuses in antifuse-based FPGAs. Not onlywould the programmable logic be undesirably large due to the presence oflarge programming transistors, but the antifuse-based FPGA solutionwould be undesirable because manufacturing antifuse-based FPGAs oftenrequires special fabrication processes. The need to have specialfabrication processes performed by a semiconductor fabrication facilityoften results in the semiconductor fabrication facility charging more tofabricate the integrated circuit.

If, on the other hand, the programmable logic portion would be realizedin an SRAM-based FPGA technology, then the circuitry would beundesirably large due to the need to provide a large number of memorystructures. A large number of memory structures is needed in anSRAM-based FPGA technology to store configuration data. Laserprogrammable gate array technologies are known, but devices made usingthese technologies are expensive and slow to produce and may have yieldand other problems. Laser programming is really more suited toprototyping purposes than it is to high production purposes.Accordingly, a field programmable gate array technology would allow anindividual manufacturer to customize a programmable portion of his ownintegrated circuits to realize his own special enhancement feature, butthe resulting integrated circuits would likely be larger, and thereforemore expensive, than would be economically feasible in a high volumeelectronic consumer device situation.

SUMMARY

A novel integrated circuit comprises a substantially non-customizablehardware portion and a programmable gate array portion. Thesubstantially non-customizable hardware portion includes circuitry thatperforms a common function. The common function is present across manymakes and models of a type of electronic consumer device. Theprogrammable gate array portion is a portion of the integrated circuitthat can be customized to realize a special enhancement feature desiredby a particular manufacturer of electronic consumer devices. In thisway, a first particular manufacturer of an electronic consumer devicecan have the integrated circuit manufactured so that a first enhancementfeature is realized in the programmable gate array portion of theintegrated circuits made for the first manufacturer. A second particularmanufacturer of electronic consumer devices can have the integratedcircuit manufactured so that a second enhancement feature is realized inthe programmable gate array portion of the integrated circuits made forthe second manufacturer. Economies of scale associated withmanufacturing the integrated circuit in greater volumes are takenadvantage of while at the same time providing individual manufacturersof electronic consumer devices the ability to provide their own specialenhancement features.

The programmable gate array portion is made of afactory-mask-programmable gate array architecture. The programmable gatearray portion is therefore very dense and small. Its interconnect doesnot depend on the programming of antifuses. It therefore does notinclude large programming transistors of an antifuse-based FPGA. Itsinterconnect is not SRAM-based and its macrocells are not LUT-based. Ittherefore does not include a large number of memory cells for storingconfiguration data.

Attempting to provide an enhancement function in a mask-programmabletechnology might be considered undesirable and an unduly expensive.During development of a electronic consumer device, it might appear thata run of wafers of the integrated circuit would have to be made with aspecial mask such that the programmable portion of the integratedcircuit could be programmed to perform its desired function in thesystem being developed. In one example, the programmable portion has towork at hardware operating speeds in conjunction with the remainder ofthe integrated circuit and the system being developed. Softwareemulation tools cannot therefore often be used to receive the signalsgoing into the programmable portion and to generate therefrom the outputsignals that are to be supplied back to the remainder of the integratedcircuit. It would appear that multiple runs of the integrated circuitmight have to be made and then tested in the system before the systemcould be verified to function properly. The inability to use softwareemulation tools and a need to test a real system at speed during systemdevelopment would appear to make realizing an enhancement feature in amask-programmable gate array architecture unrealistically expensive andcumbersome.

In accordance with a first novel aspect, interface circuitry is providedon the integrated circuit along with the mask-programmable gate arrayportion and the substantially non-customizable hardware portion. Duringsystem development, the integrated circuit is placed in a test mode. Inthe test mode, the interface circuitry receives signals from thenon-customizable hardware portion that would otherwise in normaloperation be supplied into the programmable gate array portion of theintegrated circuit. The interface circuitry outputs those signals ontofirst terminals of the integrated circuit package. A field programmablegate array (FPGA) external to the integrated circuit receives thesignals from the first terminals. The external FPGA functions in theplace of the programmable gate array portion of the integrated circuit.The external FPGA receives the signals from the first terminals, andgenerates therefrom output signals. The output signals are supplied backonto second terminals of the integrated circuit package. The interfacecircuitry receives the output signals from the second terminals andsupplies those output signals to the substantially non-customizablehardware portion in the place of output signals that would otherwise beoutput in normal operation from the programmable gate array portion.Operation in the test mode therefore allows an externalcommercially-available FPGA to perform the function of themask-programmable gate array portion embedded within the integratedcircuit. Because the external FPGA realizes the function in hardware,operation of the FPGA is adequately fast to perform the operation of themask-programmable gate array portion in a real-world system beingdeveloped. Because the commercially-available FPGA is manufactured involume, it can be purchased and employed without a large expenditure.Similarly, development tools for programming the commercially-availableand mass-produced FPGA are readily available as well as technicalsupport and a large number of engineers who have previous experience inusing the type of FPGA.

The development tools available from the FPGA manufacturer of theexternal FPGA are therefore usable to program or configure the externalFPGA during the development of the system. In one example, a startingdesign is specified on the FPGA development system. The starting designmay, for example, include a schematic of circuitry to be realized in themask-programmable gate array portion of the integrated circuit. Thestarting design may alternatively be described in a hardware descriptionlanguage such as Verilog or VHDL. Regardless of how the starting designis specified, the starting design is technology-mapped to the hardwareof particular external FPGA being used. The design is placed, androuted, and configuration information is generated that is usable toprogram the FPGA in the ordinary fashion that FPGAs are programmed. Inthe case of the external FPGA being an antifuse-based FPGA, theconfiguration information is used to program various antifuses of theFPGA to realize the functionality of the starting design. Multipleantifuse-based FPGAs can be programmed in this way, and tried one by onein the system being developed until the system operates as desired. Inthe case of the external FPGA being an SRAM-based FPGA, the same FPGA isrepeatedly reloaded with configuration data. The FPGA is tested in thesystem and is then repeatedly reconfigured and retested until the systemoperates as desired. After operation of the integrated circuit in thesystem is satisfactory when the functionality of the mask-programmablegate array portion is performed by the external FPGA, the developmenttool is used to output information usable to fashion a mask such thatthe mask-programmable gate array portion can be made to realize the samefunction performed by the external FPGA. The starting design istechnology-mapped to the hardware of the mask-programmable gate arrayportion. The design is placed, and routed. The development tool thenoutputs the information usable to make the mask. In one embodiment, thisinformation is in the form of a GDS file.

The mask determines where conductive vias will be disposed and whereconductive vias will not be disposed in a single layer of the integratedcircuit. Where these conductive vias are present and are not presentdetermines how logic circuitry of the customizable portion isinterconnected. The information output from the development system isused to make the mask, and the mask is used to make an integratedcircuit such that the mask-programmable gate array portion of theintegrated circuit performs in the system in the same way that theintegrated circuit did in concert with the external FPGA. Because onlyone new mask must be made in order to make a customized version of theintegrated circuit, production costs associated with providingcustomized integrated circuits to a particular manufacturer are reduced.

Due to the provision of the interface circuitry, it is not necessary fora manufacturer of electronic consumer devices to have multiple versionsof the integrated circuit fabricated in order to develop an electronicconsumer device system with a special enhancement feature. A firstmanufacturer of electronic consumer devices can have the integratedcircuit made with the mask-programmable gate array portion customized torealize the first manufacturer's special enhancement feature, and asecond manufacturer of electronic consumer devices can have theintegrated circuit made with the mask-programmable gate array portioncustomized to realize the second manufacturer's special enhancementfeature. For each manufacturer, only one version of the integratedcircuit (and one customized mask) need be made for the manufacturer todevelop and produce the overall system of which the integrated circuitis a part. The integrated circuit can operate in a system beingdeveloped at normal operating speeds due to the interface circuitry'scoupling to an external FPGA.

In some embodiments, the first and second input/output terminals (I/Oterminals) provided on the integrated circuit package for interfacing tothe external FPGA during testing and development are later usable duringnormal integrated circuit operation for other purposes in the resultingsystem. The I/O terminals may, for example, be usable to provide accessto the mask-programmable gate array portion of the integrated circuit sothat the circuitry of the mask-programmable gate array portion performsanother board level function and communicates with circuitry outside theintegrated circuit via the I/O terminals. These I/O terminals and themask-programmable gate array portion provide a way to fix bugs anderrors on the system board of the electronic consumer device.

In some embodiments, the integrated circuit has input/output cells(interface cells) and associated input/output pads (interface pads) forcoupling to the first and second I/O terminals of the package. Theintegrated circuit is packaged to that these input/output cells(interface cells), and pads (interface pads) are bonded out to I/Oterminals of the package. The packaged integrated circuit is then usedduring development of the system. The I/O terminals are used to coupleto the external FPGA as described above. When the system is then laterproduced in high volume, the production version of the integratedcircuit is packaged in a different way so that the input/output cellsand pads are not bonded out to I/O terminals. This reduces the number ofI/O terminals on the production version of the packaged integratedcircuit. Manufacturing costs of the production version of the electronicconsumer device are therefore reduced.

In accordance with a second novel aspect, a customizable ASIC includes asubstantially non-customizable hardware portion and a mask-programmablegate array portion. The mask-programmable gate array portion receivespixel data from the substantially non-customizable hardware portion inmultiple color space formats (for example, in the YCbCr 4:4:4 colorspace format and in the RGB color space format). Providing pixel data tothe mask-programmable gate array portion in multiple color space formatsmakes the mask-programmable gate array portion more versatile in thatcertain enhancement functions are more easily performed on pixel data inone color space format, whereas other enhancement functions are moreeasily performed on pixel data in another color space format.

Other embodiments and advantages are described in the detaileddescription below. This summary does not purport to define theinvention. The invention is defined by the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a simplified diagram of a method and novel integrated circuitin accordance with one embodiment.

FIG. 2 is a simplified block diagram of a system being developed inaccordance with the method and integrated circuit of FIG. 1.

FIG. 3 is a more detailed block diagram of the integrated circuit ofFIG. 2. The substantially non-customizable hardware portion occupiessubstantially more integrated circuit area than the mask-programmablegate array portion occupies. In one specific embodiment of theintegrated circuit illustrated in FIG. 3, the substantiallynon-customizable hardware portion occupies approximately forty squaremillimeters of integrated circuit area whereas the mask-programmablegate array portion occupies approximately three square millimeters.

FIGS. 4-17 set forth one specific example the mask-programmable gatearray portion of the integrated circuit of FIG. 3.

FIG. 18 is a diagram that illustrates interface circuitry in accordancewith another specific embodiment.

DETAILED DESCRIPTION

FIG. 1 is a simplified high level diagram in accordance with oneembodiment. An electronic consumer device system 1 is being developed bya first manufacturer of electronic consumer devices. System 1 includes amask-customizable application specific integrated circuit (ASIC) 2.Integrated circuit 2 performs a significant data processing function insystem 1 that is also performed in other electronic consumer devicesystems made by other manufacturers. In one example in which theelectronic consumer device is a television, the common function mayinclude a deinterlacer function, a noise reduction function, a scalerfunction, a gamma correction function, a digital-to-analog converterfunction, and an on-screen display function. The common function isperformed by a substantially non-customizable hardware portion 3.Substantially non-customizable portion 3 receives inputs from the systemand generates outputs to the system. In one example, substantiallynon-customizable portion 3 is realized using standard cell fabricationtechnology.

Integrated circuit 2 further includes a factory mask-programmable gatearray portion 4. Mask-programmable gate array portion 4, rather thanbeing implemented in standard cells, is laid out as full customcircuitry. The mask-programmable gate array portion 4 is capable ofreceiving input signals from the substantially non-customizable hardwareportion 3, of performing a desired function using those input signals,and of generating output signals. The output signals are supplied backto the substantially non-customizable hardware portion 3. In theillustration, arrow tail 5 represents the sources of the input signalsthat serve as the input signals to the mask-programmable gate arrayportion 4. In the illustration, arrow head 6 represents destinations atwhich the output signals generated by the mask-programmable gate arrayportion 4 are supplied back to the substantially non-customizablehardware portion. Although the sources and destinations are eachillustrated as points, in actuality the sources involve signals takenfrom many places in the substantially non-customizable hardware portion3 and the destinations involve signals being injected into manydifferent places in the substantially non-customizable hardware portion3.

In addition to substantially non-customizable hardware portion 3 andmask-programmable gate array portion 4, integrated circuit 2 furtherincludes interface circuitry. In the illustration, the interfacecircuitry is the remainder of the circuitry of integrated circuit 2 thatis not the substantially non-customizable hardware portion 3 or themask-programmable gate array portion 4.

Integrated circuit 2 is capable of operation in a test mode and in anormal operation mode. To develop system 1, integrated circuit 2 isplaced into system 1. At this time, integrated circuit 2 is not yetmask-programmed to perform a special enhancement function in the system.The interface circuitry is placed into the test mode. In the presentexample, this is done by having a field programmable gate array (FPGA)development system 7 communicate via a serial bus with a serialinterface 8 of the interface circuitry. Serial interface 8 receives thecommunication from the FPGA development system 7 via a pair ofinput/output terminals (I/O terminals) 9 and 10 of the interfacecircuitry. I/O terminal 9 is a data terminal DATA. I/O terminal 10 is aclock terminal CLK. Serial interface 8 receives the communication andsets a bit in a configuration register (not shown). The digital contentof this configuration register bit is supplied via line 11 tomultiplexers 12 and 13 of the interface circuitry. Multiplexer 12 iscontrolled such that the input signals sourced from sources 5 withinnon-customizable hardware portion 3 are supplied via lines 14 (outputleads of portion 3), through multiplexer 12, lines 15 onto first I/Oterminals 16 of the interface circuitry. A clock signal that issynchronous with the information content on lines 15 is supplied onto aclock output terminal CLK 21 of the first I/O terminals 16. The inputsignals on first I/O terminals 16 are in turn supplied by externalconnections to I/O terminals of an external FPGA 17. In the presentexample, external FPGA 17 is a commercially-available FPGA that iswidely used and whose operation is understood by many engineers.Development tools for programming FPGA 17 are widely available andunderstood. Due to the operation of the interface circuitry, the inputsignals that will be supplied to the mask-programmable gate arrayportion 4 in the normal operation mode of integrated circuit 2 aresupplied to external FPGA 17 in the test mode. In the test mode,multiplexer 13 is also controlled such that output signals supplied fromFPGA 17 are conducted via external connections, to second I/O terminals18, through lines 19, through multiplexer 13, and through lines 20(input leads of portion 3) to the destinations 6 within substantiallynon-customizable hardware portion 3. Accordingly, the interfacecircuitry couples FPGA 17 to integrated circuit 2 so that circuitryinside FPGA 17 can take the place of (functionally during the test mode)mask-programmable gate array portion 4 as it will later be programmedfor operation during the normal operation mode. The interface circuitrytherefore constitutes a means for coupling an external FPGA to theintegrated circuit such that the FPGA performs a function to beperformed by the mask-programmable gate array portion of an otherwisesubstantially identical integrated circuit when the mask-programmablegate array portion of the otherwise substantially identical integratedcircuit is mask-programmed and operating in a real system.

FPGA development system 7 is used to enter a description of a circuitdesign that will later be realized in mask-programmable gate arrayportion 4. The description can be entered in the form of a schematic.The description can be entered in the form of a hardware descriptionlanguage such as Verilog or VHDL. Using FPGA development system 7, thecircuitry design is technology-mapped to the hardware of FPGA 17. It isplaced, and routed. Timing verification is performed. Configurationinformation is then output from FPGA development system 7 and issupplied to external FPGA 17 so that FPGA 17 is configured or programmedto realize the desired circuit. FPGA 17 can be an FPGA of any suitableFPGA technology including, for example, an anti-fuse based technology,an SRAM-based technology, or an EEPROM-based technology, or aFLASH-based technology.

Once configured, external FPGA 17 operates in conjunction with thesubstantially non-customizable hardware portion 3 of integrated circuit2 in the system being developed 1. Because FPGA 17 implements thecircuit design in hardware, the system 1 can operate at full operatingspeed of system 1. If desired, the function of FPGA 17 can be changed byaltering the circuit design on FPGA development tool 7, technologymapping, placing, routing and then reprogramming or reconfiguring FPGA17. Substantially non-customizable hardware portion 3 performs afunction in system 1 that is also common to other similar systems beingdeveloped by other manufacturers. FPGA 17, on the other hand, performs aspecial enhancement function desired by the particular manufacturer whois developing system 1.

Once FPGA 17 and integrated circuit 2 are operating correctly in system1, then FPGA development tool 7 is used to generate information usableto make a semiconductor fabrication mask (or reticle if astep-and-repeat projection system is to be used in the fabrication ofthe integrated circuit). This information may, for example, be a typicalGDS file. The mask or reticle is usable during the fabrication processof integrated circuit 2 such that mask-programmable gate array portion 4is customized to perform the same function performed in the test mode byexternal FPGA 17. In one embodiment, only one layer of conductive viasis customized and only one new mask is made. The customization of thelayer of conductive vias results in mask-programmable gate array portion4 performing the same function performed in the test mode by externalFPGA 17. Mask-programmable gate array portion 4 is very dense andtherefore small and inexpensive to provide on integrated circuit 2.Mask-programmable gate array portion 4 is not an antifuse-based FPGA andtherefore does not involve large programming transistors needed tosupply programming current to antifuses during antifuse programming.Mask-programmable gate array portion 4 is not an SRAM-based FPGA andtherefore does not involve the many memory cells needed in an SRAM-basedFPGA architecture to store configuration data. Because only one layer ofintegrated circuit 2 requires customization, non-recurring engineeringcosts associated with providing a customized integrated circuit 2 to themanufacturer of system 1 is reduced. Because mask-programmable gatearray portion 4 is dense, the unit cost of manufacturing the customizedintegrated circuit 2 is also low.

In the full production version of system 1, no FPGA 17 is provided. Thefunctionality previously provided by FPGA 17 in the test mode isprovided by customized programmable gate array portion 4. The interfacecircuitry powers up in its normal operation mode (not the test mode) andremains in the normal operation mode during normal operation of system1. Transferability of the design from FPGA 17 to mask-programmable gatearray portion 4 is facilitated by using synchronous design techniques inthe design of the circuitry programmed into FPGA 17 and the circuitryconfigured into mask-programmable gate array portion 4. In oneembodiment, both the circuitry programmed into FPGA 17 and the circuitryconfigured into mask-programmable gate array portion 4 are clocked bythe same clock signal present on clock terminal CLK 21.

During operation in the normal operation mode, the first and second setsof I/O terminals 16 and 18 are not needed for interfacing to externalFPGA 17. Accordingly, in some embodiments the first and second sets ofI/O terminals 16 and 18 are usable during the normal operation mode toprovide access to and from the mask-programmable gate array portion 4 sothat a portion of the circuitry within mask-programmable gate array 4can perform another board-level function. This portion of the circuitryof mask-programmable gate array portion 4 communicates with circuitryoutside the integrated circuit via the I/O terminals. I/O terminals 16and 18 therefore provide a way for the manufacturer of system 1 to fixbugs and errors on the system board of system 1. I/O terminals 16 and 18can also be used to provide an additional function on the system boardof system 1.

If the functionality afforded by mask-programmable gate array portion 4to fix bugs and provide additional functions is not needed in the finalsystem 1, then integrated circuit 2 can be packaged in its fullproduction version in a package that does not include I/O terminals 16and 18. The input/output cells and associated input/output pads onintegrated circuit 2 that are provided for coupling to first and secondI/O terminals 16 and. 18 are not bonded out to package I/O terminals inthe full production package. This reduces the number of package I/Oterminals on the production version of the packaged integrated circuit,thereby reducing manufacturing costs of the production version ofintegrated circuit 2.

In the same way that a first manufacturer can use an FPGA developmentsystem to develop a first electronic consumer device system and thenmake a single mask (or reticle) such that the novel integrated circuit 2functions in that system to perform both a common function as well as afirst special enhancement function, so too can a second manufacturer usean FPGA development system to develop a second electronic consumerdevice and then make a single mask such that the novel integratedcircuit 2 functions in that system to perform both the common functionas well as a second special enhancement function. Although the method ofFIG. 1 is described above in connection with system 1 being atelevision, the method is usable in the development of multiple otherdifferent types of systems. The method is envisioned to be especiallyuseful in the development of cost-sensitive high-volume electronicconsumer devices wherein an integrated circuit is to perform both afunction common to many makes and models of the type of electronicconsumer device as well as to perform a specific enhancement functionpresent in only certain makes and/or models. The customization of theintegrated circuit is done by only changing the details of a singlelayer within the mask-programmable gate array portion of the integratedcircuit. The vast majority of the integrated circuit layout design workneed not be redone in order to produce a customized version of theintegrated circuit. Once one version of integrated circuit has designed,the additional cost associated of producing different customizedversions of the integrated circuit is low, thereby making use of theintegrated circuit design attractive to a large number of differentmanufacturers of similar electronic consumer devices.

ONE SPECIFIC EXAMPLE

FIG. 2 is a simplified system level diagram of the electronics of avideo display system 101 in accordance with one specific example. Anincoming signal is received onto the video display system, for example,from an antenna 102, a coaxial cable 103, or another video source 104.The signal passes through a tuner 105, an IF demodulator 106, ananalog-to-digital converter 107, and to a display processor 108 withinan integrated circuit 109. The display processor 108 performsdeinterlacing and scaling. Display processor 108 is fabricated out of amix of standard cell and full custom circuitry. A mask-programmable gatearray portion 110 of integrated circuit 109, either independently or inconcert with parts of the display processor 108, performs one or moreenhancement functions. The resulting deinterlaced video signal is outputfrom integrated circuit 109 to driver 111 and to a display device. Thedisplay device may, for example, be a cathode ray tube (CRT) 112, aliquid crystal display (LCD) screen 113, a plasma display 114 or otherdisplay device usable to view video. Frames of video information arestored in an external RAM 115. A microcontroller 116 is coupled tointegrated circuit 109. Microcontroller 116 can control features and/orenhancement functions performed by integrated circuit 109. Thesefeatures and/or enhancement functions may, for example, includePicture-In-Picture (PIP), Picture-Out-Picture (POP), Cinema 1, Cinema 2,format conversion, film detection, panorama scaling, alpha blending andoverlay, VBI/Closed Captioning, On-Screen Display (OSD), and brightnessadjusting. Audio passes through audio circuitry 117 and to speaker 118.

FIG. 3 is a more detailed diagram of integrated circuit 109 of FIG. 2.Integrated circuit 109 actually has two digital video input ports 119and 120. A digital video signal received onto digital video port 119passes through a format detector 121, through a FIFO 122, and to amemory control block 123. If a digital video signal is present ondigital video port 120, then this second digital video signal passesthrough a second format detector 124, through a second FIFO 125, and tomemory control block 123. In the example of FIG. 1, only one of thedigital video ports, digital video port 119, is used. Consecutive framesof video pass through digital video input port 119, through formatdetector 121, through FIFO 122, through memory control block 123 and arestored in DDR SDRAM (double data rate synchronous dynamic random accessmemory) 115.

In one example, each frame of video is an NTSC video frame that includes480 scan lines of pixels, where each row contains 720 pixels. (A line ofpixels is sometimes called a row of pixels). In this example, a pixelinvolves two numbers: 1) an eight-bit luminance value, and 2) aneight-bit chrominance value. Each frame is made up of two fields. Thefirst field includes the odd scan lines of the frame. The second fieldincludes the even scan lines of the frame. The first field includespixels of the video image at a time before the remainder of the imagerepresented by the pixels of the second field. In the example of thehardware of FIG. 3, consecutive fields of consecutive frames arereceived and stored field by field into RAM 115.

It is desired to supply some video display devices with “deinterlaced”video in that the number of pixels in each field of pixels is to bedoubled. For each 240 line by 720 pixels field supplied to integratedcircuit 9, the integrated circuit is to output a frame of 480 lines by720 pixels. To convert a 240 line by 720 pixel field (called the “fieldof interest”) into a 480 line by 720 frame, corresponding blocks ofthree consecutive fields are taken out of RAM 15. Consider threecorresponding blocks in three consecutive fields. The first fieldcontains odd lines for a first frame (lines 1, 3, 5 and so forth) andthe second field contains even lines (lines 2, 4, 6 and so forth) forthe first frame. The third field is the first field containing odd lines(lines 1, 3, 5 and so forth) of the next frame. The middle field is thefield of interest. The second block for which extra pixels are to begenerated is a block from this field of interest. The number of lines ofpixels within this block is doubled. The first block is a block for thesame spatial location in the frame as the second block, only the firstblock is from the field immediately prior to the field of interest. Thethird block is a block for the same spatial location in the frame as thesecond block, only the third block is from the field immediatelyfollowing the field of interest. Motion detection block 188 of processblock 126 (see FIG. 3) uses the first and the third blocks to make adetermination whether there is motion in the second block. If, forexample, an object in the video that happens to be in the area of thepicture defined by a block were to move position from one field to thenext to the next, then motion might be detected.

If motion is not detected for the area of the picture defined by thesecond block, then temporal interpolation is used to create pixels inbetween the row of pixels of the second block. In the example where thesecond block contains even lines, the temporal interpolation processgenerates new pixels in the odd rows such that the number of pixels inthe second block is doubled. These new pixels are to fill in theinterline gaps between the even lines. These new pixels are determinedby looking at the corresponding pixels in the first block and thirdblock. This is called “temporal” interpolation because pixel informationoutside the time of the field of interest (the second block is from thefield of interest) is used to interpolate and determine the new pixels.

If, on the other hand, motion is detected within the second block, thenspatial interpolation is used to interpolate and fill in the odd linesin the second block. Spatial interpolation uses pixels in the same fieldas the second block to determine the new pixels. In this way, blockafter block within the field of interest is filled in such a way thatthe number of lines of pixels in the field of interest is increased from240 even lines to 480 odd and even lines. The interpolation andgeneration of new pixels is performed by deinterlace block 189 ofprocess block 126 (see FIG. 3).

The blocks of pixels used in the process described above are taken outof RAM 115 in multi-line blocks of pixels. A multi-line block of pixelsis six 720 pixel lines. Each of buffers 127 and 129 is a buffer thatstores six rows of pixels each. Buffer 128 is smaller. It stores fiverows of pixels. Each of buffers 127, 128 and 129 is coupled to processblock 126 by its own 128-bit wide bus.

As the blocks in the field of interest are processed, the interpolatednew pixels are written into a FIFO 130. FIFO 130 is coupled to processorblock 126 by a 128-bit wide bus. FIFO 130 is coupled to memory controlblock 123 by another 128-bit wide bus. Noise reduction results areoutput by noise reduction block 190 of process block 126 and aresupplied to memory control block 123 via FIFO 173.

Once the interpolation process is completed for the block in the fieldof interest, then buffer 130 of newly interpolated pixels is stored bymemory control block 123 in RAM 115. When the resulting field of“deinterlaced” video is to be output, then the block of newlyinterpolated pixels is combined with the original block and theresulting “deinterlaced” block is output onto output bus 131 to FIFO132. Each pixel is represented by sixteen bits, and eight pixels (allthe pixels, both original and interpolated, in a column of the segment)are output onto bus 131 at the same time. Output bus 131 is 128 bitswide. FIFO 132 contains 960 such 128-bit wide words.

The deinterlaced lines of video pass through FIFO 132 and to scalerblock 133. Scaler block 133 outputs each pixel in parallel as sixteenbits. Pixels are output by scaler block 133 and are supplied viamultiplexer 134 to enhancement block 135. An example of an enhancementperformed by enhancement block 135 is brightness adjustment. Each YCbCr4:4:4 pixel is 24 bits wide, and pixels come out of enhancement block135 pixel by pixel on a 24-bit wide bus 136. On each rising edge ofOUTCLK, three 8-bit pixel values (one 8-bit Y pixel value, one 8-bit Cbpixel value, and one 8-bit Cr pixel value) can be present on bus 136.The pixels pass through multiplexer 137 to color space conversion block138. Color space conversion block 138 performs, in this example, YCbCr4:4:4 to RGB conversion. The pixels are output from color spaceconversion block 138 via a 24-bit wide bus 139 to a blending multiplexer140. On each rising edge of OUTCLK, three 8-bit pixel values (one 8-bitR pixel value, one 8-bit G pixel value, and one 8-bit B pixel value) canbe present on 24-bit bus 139. Blending multiplexer 140 provides theability to multiplex in on-screen display overlay information. Thepixels are output from blending multiplexer 140 to a gamma correctionand dither block 141. The resulting pixels are output to multiplexer142. If an analog video output signal is desired, then the pixel streampasses through a digital-to-analog converter (DAC) block 143 and isoutput from integrated circuit 109 in analog form. If a high definitiondigital television signal is desired, then the stream of pixels passesthrough dual pixel block 144 which doubles the number of bitssimultaneously output from integrated circuit 109 from 24 bits to 48bits. This also results in decreasing the rate at which information isoutput on terminals 145 and 146. On-screen display functionality isprovided by block 147. The characters to display on the screen aresupplied to block 147 from serial interface block 148. An external OSD(on-screen display) integrated circuit 149 is provided as an option ifmore on-screen display functionality and colors and fonts are desired.Microcontroller 116 controls the various blocks of integrated circuit109 by sending a serial communication to serial interface 148 ofintegrated circuit 109 via a data line 150 and a clock line 151. Serialinterface 148 in turn performs a write to the appropriate one ofconfiguration registers 152. The digital content of the bits in thevarious configuration registers are supplied as control signals to thevarious other blocks to be controlled. The other blocks are thereforecontrollable or customized to a relatively small degree by setting bitsin a configuration register, but fine-grained general-purpose low levelmacrocell logic within the blocks are not freely interconnectable indifferent ways by determining how a programmable interconnect structureinterconnects those macrocells. The circuitry of these other blocks istherefore said to be substantially non-customizable.

Integrated circuit 109 includes a first phase-locked loop circuit 153and a second phase-locked loop circuit 154. Both use an external crystal155 as a time base. First phase-locked loop circuit 153 generates anINCLK signal (1X) and a DDRCLK signal (2X). These signals are used toclock the various blocks to the left side of FIG. 3. INCLK goes toblocks 126, 139, and 140. Second phase-locked loop circuit 154 generatesan output clock OUTCLK used to clock mask-programmable gate arrayportion 110 and to clock the various blocks to the right of FIG. 3. Thisclock signal OUTCLK is also driven off-chip to clock the synchronouslogic within external FPGA in the test mode.

Mask-programmable gate array portion 110 is coupled to receive inputsignals from various sources within the remainder of integrated circuit109. Mask-programmable gate array portion 110 is also coupled to supplyoutput signals to various destinations within the remainder ofintegrated circuit 109. The interconnections for couplingmask-programmable gate array portion 110 to these sources anddestinations are illustrated in FIG. 3.

Mask-programmable gate array portion 110 can, for example, performcustomized enhancement motion detection, deinterlacing, and/or noisereduction functions in the place of process block 126 by receiving thesignals passing into process block 126 via busses 156, 157, and 158.Mask-programmable gate array portion 110 can then supply its output inthe place of the result otherwise output by process block 126.Mask-programmable gate array portion 110 supplies its outputs to FIFOs130 and 173 via buses 159 and 160 and multiplexers 161 and 162,respectively.

Mask-programmable gate array portion 110 can, for example, performcustomized enhancement scaler functions by receiving via bus 163 thesignals passing into scaler block 133. Bus 164 and multiplexer 134 areusable to supply the output in the place of the output otherwisesupplied by scaler block 133.

Mask-programmable gate array portion 110 can, for example, performcustomized enhancement functions in the place of enhancement block 135.To do this, mask-programmable gate array portion 110 receives theinformation that would otherwise be used by enhancement block 135. Itreceives this information via FIFO 165 three pixels at a time inparallel fashion. First, FIFO 165 outputs three pixels, extending in thevertical direction, of pixel lines 1, 2 and 3. Next, FIFO 165 outputthree pixels extending in the vertical direction, of pixel lines 2, 3and 4. This process of supplying three pixels to mask-programmable gatearray portion 110 continues, top to bottom, and left to right, acrossthe frame of pixels. The result of the enhancement function performed bymask-programmable gate array portion 110 is supplied in the place of theoutput of enhancement block 135. The output of the enhancement functionis supplied to color space conversion block 138 via bus 166 andmultiplexer 137.

Mask-programmable gate array portion 110 can, for example, performcustomized enhancement functions in the place of color space conversionblock 138 and/or gamma correction and dither block 141.Mask-programmable gate array portion 110 can, for example, perform acolor space conversion different from the standard color spaceconversion performed by color space conversion block 138. To providesuch an enhancement function or alternative color space conversion, theinput to color space conversion block 138 is supplied tomask-programmable gate array portion 110 via bus 167. Enhance block 135supplies a DCTINA active signal to mask-programmable gate array portion110 to indicate when valid pixel data is present on 24-bit wide bus 167.The output of mask-programmable gate array portion 110 is supplied inthe place of the output of gamma correction and dither block 141. Thisis performed using 24-bit wide bus 168 and multiplexer 142. Maskprogrammable gate array portion 110 outputs an active signal (not shown)along with the pixel data to indicate when valid pixel data is presenton 24-bit wide bus 168.

Where pixel data is supplied across a bus to mask-programmable gatearray portion 110 from a sourcing block, the sourcing block alsosupplies a corresponding active signal to indicate when valid pixel datais present on the bus. DCTINA and GMAINA are two such active signals.Similarly, where pixel data is supplied across a bus to a destinationblock from the mask-programmable gate array portion 110, themask-programmable gate array portion 110 also supplies a correspondingactive signal to indicate when valid pixel data is present on the bus. Asignal SMXOA (not shown) is one such active signal supplied to enhanceblock 135 from mask-programmable gate array portion 110. A signal DCTMXA(not shown) is one such active signal supplied to color space conversionblock 138 from mask-programmable gate array portion 110. A signal GMXOA(not shown) is one such active signal supplied to dual pixel block 144from mask-programmable gate array portion 110. Pixel data is transferredsynchronously with a clock signal. The receiving block can determinewhere the end of line is and where the end of frame is by countingpixels received. Alternatively, additional signals can be provided fromthe sourcing block to indicate end-of-line, end-of-frame, and otherstatus conditions.

Some operations are better performed on pixel data in one color space,whereas other operations are better performed on pixel data in anothercolor space. In accordance with one novel aspect, the mask-programmablegate array portion 110 is coupled to receive pixel data in two differentcolor space formats (for example, the YCbCr format and the RGB format).White level enhancement, black level enhancement, color histogramextension, flesh-tone enhancement, horizontal DLTI, peaking filtering,display control and DCTI (Digital Chrominance Transient Improvement) aregenerally more easily performed in the YCbCr color space. Gammacorrection and dithering are generally more easily performed in the RGBcolor space. In addition to the two (YCbCr and RGB) color space inputs,recall that mask-programmable gate array portion 110 receives pixel dataof multiple different consecutive lines of pixels at one time asdescribed above in connection with FIFO 165. The pixels supplied to themask-programmable gate array portion 110 may be pixels from two previouslines of the frame as well as a pixel from the current line. Receivingpixel data from three such consecutive lines of pixels of a framefacilitates performing special interpolation enhancement functions inthe mask-programmable gate array portion 110. Receiving pixel data fromthree consecutive lines of pixels also facilitates performing 2D noisereduction and vertical DLTI (Vertical Digital Luminance TransientImprovement) in the mask-programmable gate array portion 110.

Integrated circuit 109 includes I/O terminals 169. These I/O terminalsinclude an external clock input terminal EXTCLK 170, sixteen outputterminals OUT 171, and sixteen input terminals IN 172. These I/Oterminals are usable during system development to couple an externalFPGA (not shown) to integrated circuit 109. The interface circuitry isnot shown in FIG. 3. See FIG. 1 for details in accordance with oneembodiment. The input signal sources 5 in FIG. 1 correspond to thevarious sources of signals being supplied into the mask-programmablegate array portion 110 in FIG. 3. The output signal destinations 6 inFIG. 1 correspond to the various destinations of signals being suppliedfrom the mask-programmable gate array portion 110 to other parts ofintegrated circuit 109 in FIG. 3. The terminals 21 and 16 in FIG. 1correspond to terminals 171 in FIG. 3. The terminals 18 in FIG. 1correspond to terminals 172 and 170 in FIG. 3.

FIGS. 4-17 set forth one specific example of mask-programmable gatearray portion 110. The example of FIGS. 4-17 is but one example. Anyother suitable mask-programmable logic architectures can be used.

FIG. 4 is a top-down diagram of the floor plan of the mask-programmablegate array portion 110 of FIG. 3. Portion 110 is laid out as a pluralityof tiles, principally organized in vertically extending columns. Thetiles labeled with numerals from one to five in the diagram are called“supercells”. Proceeding from top to bottom in each column ofsupercells, there are five supercells and then an area that containshorizontally-extending SRAM access and control lines. The horizontallyextending access and control lines are disposed in the uppermosthorizontally-extending layer of metalization of the integrated circuit.Although not illustrated in FIG. 4, there is one vertically extendingSRAM block that extends down the center of each pair of columns ofsupercells. The WD notation indicates a write data line. The RD notationindicates a read data line. The RA notation indicates a read addressline. The WR notation indicates a write strobe line. The WA notationindicates a write address line.

The supercells are organized in a two-dimensional matrix. Asillustrated, there are 56 columns of supercells in this example.Accordingly, there are 28 vertically extending SRAM blocks. Surroundingthe two-dimensional matrix of supercells is a ring of input/outputcells.

FIG. 5 is a more detailed top-down diagram of the structure of thesupercells of FIG. 4. Extending from left to right across thetwo-dimensional matrix, successive supercells are laid out substantiallyas mirror images of one another. Note that the leftmost supercell inFIG. 5 includes four logic macrocells (labeled “LOGIC”) organized in acolumn at the left. There is a buffer and clock cell (labeled “BC”)between the upper two macrocells and the bottom two macrocells. Thispattern is repeated in the next supercell to the right, except themacrocells and the buffer and clock cells appear on the right side ofthe next supercell. The two supercells to the left of FIG. 5 are not,however, exact mirror images of one another. Note that the rightmostsupercell of the pair includes a set of horizontal pass via symbols atits right edge. Each horizontal pass via symbol represents a location atwhich a horizontal conductive pass via can either be disposed or beabsent due to the customized via mask. Note also that there are alsovertical pass via symbols illustrated at the bottoms of the pair ofsupercells. Again, each of these symbols represents a location at whicha vertical pass via can either be disposed or be absent due to thecustomized via mask. The conductor lines extending the verticaldimension are labeled CLK, EXP and QUAD. The notation CLK indicates aconductor usable to transmit a clock signal. The notation EXP indicatesan express conductor. An express conductor extends substantially theentire vertical length of the mask-programmable gate array portion 110.The notation QUAD indicates a signal conductor that extends a distanceof four macrocells before it terminates at a vertical pass via location.

The horizontal conductors of the interconnect structure are realized onmetal layer 4 (M4) of the integrated circuit. The vertical conductors ofthe interconnect structure are realized on metal layer (M5) of theintegrated circuit. As illustrated, substantially the entire plane ofthe M5 layer is covered with vertically extending conductors, disposedas close together in parallel as is possible for the semiconductorprocess being used. In similar fashion, substantially the entire planeof the M4 layer is covered with horizontally extending conductors,disposed as close together in parallel as is possible for thesemiconductor process being used. The density of these vertical andhorizontal conductors in these layers in this architecture allows forthe maximization of the number of potential cross-connect conductive vialocations in the intervening layer. By maximizing the number of suchpotential cross-connect conductive via locations, only one conductivevia layer need be customized and only one new mask need be made in orderto make a customized version of integrated circuit 109. The equivalentgate density of the mask-programmable gate array portion isapproximately 25 k usable gates per square millimeter using a 0.18micron process, whereas the approximate equivalent gate density of theQuickLogic pASIC FPGA architecture is 2.5 k usable gates per squaremillimeter using a 0.18 micron process, and the approximate equivalentgate density of the Xilinx Virtex II FPGA architecture is 1.2 k usablegates per square millimeter using a 0.18 micron process.

FIG. 6 is a diagram similar to the diagram of FIG. 5 except that FIG. 6shows how the SRAM blocks are disposed underneath the metal conductorsof the macrocells. The logic portion of the macrocells that involvestransistors fabricated in the semiconductor substrate are disposedeither at the left of the macrocell in the case of the left macrocell ofthe pair, or are disposed at the right of the macrocell in the case ofthe right macrocell of the pair. As a consequence of the mirroring ofthe macrocells, an area is formed between the left and right macrocellsin which no macrocell logic is disposed. Only M4 and M5 macrocellinterconnect is disposed in these areas. Because the SRAM blocks involvea relatively small amount of higher level interconnect that wouldinterfere with the M4 and M5 macrocell interconnect, the SRAM logic (andlower-level interconnect necessary to interconnect the transistorsmaking up the SRAM logic) is disposed in this area underneath therightmost part of the left macrocell and the leftmost part of the rightmacrocell. The interconnects usable to connect to the underlying SRAMblock are brought up to the uppermost layer of horizontally extendingconductors (the M4 layer) at the locations indicated in FIG. 4. The SRAMblocks can be coupled to or not (by appropriate placement of conductivevias) at the locations indicated in FIG. 4.

FIG. 7 is a simplified side view of a vertical conductive pass via. Thetop layer of metal is metal layer 5 (denoted M5) of the integratedcircuit. The bottom layer of metal is metal layer 4 (denoted M4) of theintegrated circuit. The conductive via (a conductive plug) connecting M5and M4 to the left is a permanent conductive via in that it is presentregardless of how the customizing mask is fashioned. The conductive viaconnecting M5 and M4 to the right represents a potential conductive vialocation. A conductive via may be disposed at this location or notdepending on how the customizing mask is fashioned.

FIG. 8 is a simplified side view of a horizontal conductive pass via.The top layer of metal is metal layer 5 (denoted M5) of the integratedcircuit. The bottom layer of metal is metal layer 4 (denoted M4) of theintegrated circuit. The conductive via connecting M5 and M4 to the leftis a permanent via in that it is present regardless of how thecustomizing mask is fashioned. The conductive via connecting M5 and M4to the right represents a potential conductive via location. Aconductive via may be disposed at this location or not depending on howthe customizing mask is fashioned.

FIG. 9 is a simplified diagram of one cell of an SRAM block. FIG. 10 isa simplified diagram that illustrates a read decoder structure of one ofthe SRAM blocks. Each dashed box in FIG. 9 represents an instance of theSRAM cell structure of FIG. 9. Each SRAM block includes sixteen copiesof the structure of FIG. 10. Accordingly, each SRAM block outputssixteen bits at once.

FIG. 11 is a more detailed diagram illustrating a macrocell structure,an input/output cell (I/O cell) located to its left, and an I/O celllocated above it. The specific logic of the macrocell is illustrated atthe left edge of the macrocell. The logic includes two ANDgate-multiplexer structures and a flip-flop. The I/O cells provide inputand output buffering required to link the mask-programmable gate arrayportion 110 to the various signal sources and destinations in thediagram of FIG. 3. In the illustration, the conductive via symbolrepresents a location at which a conductive via can be placed ifdesired.

Where the number of I/O cells of the mask-programmable gate arrayportion 110 is smaller than the number of sources and/or destinations towhich the mask-programmable gate array portion 110 is to be coupled,additional multiplexing and/or demultiplexing functionality may beprovided. An additional multiplexer may be provided to couple a selectedone of multiple sources to an I/O cell (the I/O cell is being used toreceive signals onto the mask-programmable gate array portion 110). Suchan additional multiplexer may be controlled by the contents of one ormore configuration register bits. Similarly, an additional demultiplexermay be provided to couple an I/O cell (the I/O cell is being used tooutput signals from the mask-programmable gate array portion 110) to aselected one of multiple destinations. Such an additional demultiplexermay be controlled by the contents of one or more configuration registerbits. Rather than using a demultiplexer, each of the destinations canhave a registered input such that a signal is supplied to all the inputsbut only a selected one of the registered inputs is clocked. Whichregistered input is clocked may, for example, be controlled by thecontents of one or more configuration register bits. Other ways ofexpanding the number of sources and destinations to which themask-programmable gate array portion 110 is coupled are also possible.

FIG. 12 is a detailed diagram of the macrocell structure wherein thelogic of the macrocell is disposed at the right edge of the macrocell.

FIG. 13 is a detailed diagram of the buffer and clock cell (“BC”) ofFIG. 5. The shared signal conductors /SET, CLK and /RST illustrated inFIGS. 12 and 13 extend vertically in unbroken fashion the entire lengthof five supercells. The conductors denoted “1” and “0” also extendvertically in unbroken fashion the entire length of five supercells.These conductors are made wider and therefore more conductive than theother vertically extending conductors illustrate. The conductor labeled“1” is permanently coupled to VCC (supply voltage). The conductorlabeled “0” is permanently coupled to ground potential.

FIG. 14 is a simplified top-down diagram that shows a balanced clocktree structure of the mask-programmable gate array portion 110. Thisstructure is replicated twice in the integrated circuit. The leaves ofthe first clock tree are denoted as CLKTR1 (clock tree one). The leavesof the second clock tree are denoted as CLKTR2 (clock tree two). Thevertically extending clock tree leaf conductors CLKTR1 and CLKTR0 inFIG. 13 extend as illustrated in FIG. 14. The clock tree drivers of thebalanced clock trees are disposed in the horizontal gaps where the inputand output conductors for the SRAM blocks are located. There are threesuch gaps as illustrated in FIG. 14.

FIGS. 15 and 16 illustrate various logic gates and flip-flops that canbe realized by configuring the macrocell of FIG. 12 is different ways.

FIG. 17 is a simplified diagram that shows a scan test interconnectionstructure that links all the flip-flops of all the macrocells ofmask-programmable gate array portion 110 together into one long scantest shift register chain. A scan test clock signal is supplied in atest mode onto the SCAN CLOCK clock line. Repeatedly clocking this scantest clock signal causes the contents of the flip-flops to be shiftedout of the mask-programmable gate array portion 110 in serial fashion.On the flip-flop symbol, /SI denotes a scan test input lead, /SO denotesa scan test output lead, and SCAN denotes a scan clock input lead.

FIG. 18 is a diagram illustrating interface circuitry and amask-programmable gate array portion 110 in accordance with anotherspecific embodiment. The I/O terminals illustrated are I/O terminals ofintegrated circuit 109. The small blocks labeled A, B, C, D, E, F, G, L,M and N are configuration register bits of a configuration register. Theconfiguration register is writable via serial interface 148 (see FIG. 3)as described above. Control signals CONTROL[40:0] include the followinginputs: sbufa, resetn, gmaina, dctina, hsync, vsync, vx_ctrl13[7:0],vx_ctrl14[7:0]; as well at the following outputs: smxoa, gmxoa, dctimxa,vx_ctrl15[7:0] and vx_ctrl16[7:0]. The following I/O terminals on theintegrated circuit package are coupled on the system board during systemdevelopment to an external FPGA: SI[15:0], SO[15:0], SO[47:16], EXTCLK,the EXTENDED OUTPUTS OR INPUTS K, DO[23:0], DI[23:0], OUTCLK OUTPUT, OSDCLOCK, OSD OUTPUTS, and OSD INPUTS.

Although the present invention is described in connection with certainspecific embodiments for instructional purposes, the present inventionis not limited thereto. The functionality of the serial interface thatputs the integrated circuit into the test mode can, for example, berealized by a JTAG tap controller. The customizable portion 4 of thecustomizable ASIC that is provided to realize a manufacturer-specificenhancement function can include, in addition to a mask-programmableportion, other circuitry that can be used by a particular manufacturersuch as, for example, a small processor, a block of memory, small piecesof analog circuitry, I/O circuitry, bus interface circuitry, and othersmall pieces of specialized circuitry (for example, full custom orstandard cell circuitry) that might see use in a substantial subset ofthe systems of different manufacturers of a type of electronic consumerdevice. These small pieces of circuitry can be patched together and usedby the appropriate programming of a programmable interconnect structureof mask-programmable gate array portion 4. The programmable interconnectstructure may, for example, be programmable by changing only one layerof conductive vias where that layer of conductive vias is the same layerof conductive vias that customizes a mask-programmable gate arrayportion as set forth above. The interface circuitry need not involve oneset of output terminals and one set of input terminals. The interfacecircuitry may, for example, involve bidirectional communication betweenthe customizable ASIC and the external FPGA across a bus or other link.Control of the interface circuitry need not be across a serial interfacefrom an external control source. The interface circuitry can becontrolled in any suitable manner such as, for example, via the I/Oterminals across which the customizable ASIC communicates with theexternal FPGA. The interface circuitry may be put into its test mode byputting a specific pattern onto one or more I/O terminals of thecustomizable ASIC. Mask-programmable gate array portion 110 can also, insome embodiments, communicate directly with memory control block 123such that mask-programmable gate array portion 110 can cause memorycontrol block 123 to retrieve certain information from SDRAM 115 andforward that information to a designated place, such as tomask-programmable gate array portion 110. Similarly, mask-programmablegate array portion 110 can communicate directly with memory controlblock 123 thereby causing memory control block to store certaininformation (for example information received from mask-programmablegate array portion) into SDRAM 115. Where a block of the substantiallynon-customizable hardware portion operates in response to commands, themask-programmable gate array portion can issue such commands to theblock. In one example, memory control block 123 involves a DMA enginethat executes DMA commands it receives from a DMA command queue.Mask-programmable gate array portion 110 can push a command onto the DMAcommand queue of the DMA engine such that the DMA engine later receivesthe command from the DMA command queue and executes the DMA command. TheDMA command can include an indication of a source and an indication of adestination for the information to be moved. In one example, themask-programmable gate array portion 110 can be directly coupled to anadditional external memory integrated circuit in the production versionof the system. The substantially non-customizable hardware portion canperform a still image processing function as opposed to a videoprocessing function, and the mask-programmable gate array portion canperform a still image enhancement function as opposed to a videoenhancement function. Accordingly, various modifications, adaptations,and combinations of various features of the described embodiments can bepracticed without departing from the scope of the invention as set forthin the following claims.

1. An integrated circuit, comprising: a substantially non-customizablehardware portion; and a mask-programmable logic portion that is coupledto receive first pixel data from the substantially non-customizablehardware portion in a first color space format and to receive secondpixel data from the substantially non-customizable hardware portion in asecond color space format.
 2. The integrated circuit of claim 1, whereinthe substantially non-customizable hardware portion includes a colorspace conversion circuit.
 3. The integrated circuit of claim 1, whereinthe substantially non-customizable hardware portion performs a videoprocessing function, and wherein the mask-programmable logic portion ismask-programmed to perform an enhancement function.
 4. The integratedcircuit of claim 1, wherein the mask-programmable logic portion iscoupled to receive the first pixel data from the substantiallynon-customizable hardware portion in the first color space format via afirst parallel bus, the mask-programmable logic portion furtherreceiving a signal from the substantially non-customizable hardwareportion that is indicative of whether valid pixel data is present on thefirst parallel bus.
 5. An integrated circuit, comprising: asubstantially non-customizable hardware portion; and a mask-programmablelogic portion that is coupled to receive first pixel data from thesubstantially non-customizable hardware portion in a first color spaceformat and to receive second pixel data from the substantiallynon-customizable hardware portion in a second color space format,wherein the mask-programmable logic portion is coupled to receive thefirst pixel data from the substantially non-customizable hardwareportion in the first color space format via a first parallel bus,wherein the mask-programmable logic portion further receives a signalfrom the substantially non-customizable hardware portion that isindicative of whether valid pixel data is present on the first parallelbus, and wherein the mask-programmable logic portion is coupled tooutput third pixel data in the first color space format to thesubstantially non-customizable hardware portion via a second parallelbus, the mask-programmable logic portion outputting a signal to thesubstantially non-customizable hardware portion that is indicative ofwhether valid pixel data is present on the second parallel bus.
 6. Theintegrated circuit of claim 1, wherein the mask-programmable logicportion is mask-programmed to perform an enhancement function on thefirst pixel data, the enhancement function being from the groupconsisting of: white level enhancement, black level enhancement, colorhistogram extension, flesh-tone enhancement, horizontal DLTI, peakingfiltering, display control and OCTI (Digital Chrominance TransientImprovement), and wherein the first color space format is a YCbCr colorspace.
 7. The integrated circuit of claim 1, wherein themask-programmable logic portion is mask-programmed to perform anenhancement function on the first pixel data, the enhancement functionbeing from the group consisting of: gamma correction and dithering,wherein the first color space format is an RGB color space.
 8. Theintegrated circuit of claim 1, wherein the substantiallynon-customizable hardware portion occupies substantially more integratedcircuit die area than the mask-programmable logic portion occupies. 9.The integrated circuit of claim 1, wherein the integrated circuit isdisposed in a video display device.
 10. The integrated circuit of claim1, wherein the substantially non-customizable hardware portion includesa configuration register, and wherein the substantially non-customizablehardware portion is configurable by writing configuration informationinto the configuration register.
 11. The integrated circuit of claim 1,wherein the substantially non-customizable hardware portion is realizedat least in part of standard cells.
 12. An integrated circuit,comprising: a substantially non-customizable hardware portion; and amask-programmable logic portion that is coupled to receive pixel datafrom the substantially non-customizable hardware portion in a selectableone of either a first color space format or a second color space format.13. The integrated circuit of claim 1, further comprising: interfacecircuitry for interfacing an external FPGA to the integrated circuit.14. The integrated circuit of claim 13, wherein the integrated circuitcomprises: a multiplexer selectable to supply either the pixel data inthe first color space format to the mask-programmable logic portion orto supply the pixel data in the second color space format to themask-programmable logic portion.
 15. The integrated circuit of claim 14,wherein the multiplexer is part of the mask-programmable logic portion.16. The integrated circuit of claim 14, wherein the multiplexer is partof the substantially non-customizable hardware portion.
 17. Theintegrated circuit of claim 13, further comprising: interface circuitryfor interfacing an external FPGA to the integrated circuit.
 18. Amethod, comprising: performing a video processing function in asubstantially non-customizable hardware portion of an integratedcircuit, the substantially non-customizable hardware portion outputtingpixel data in a first color space format and pixel data in a secondcolor space format; receiving the pixel data in the first color spaceformat onto a mask-programmable logic portion of the integrated circuit;and receiving the pixel data in the second color space format onto themask-programmable logic portion of the integrated circuit.
 19. Themethod of claim 18, wherein the first color space format is a YCbCrcolor space format, and wherein the second color space format is an RGBcolor space format.
 20. An integrated circuit, comprising: asubstantially non-customizable hardware portion that performs a videoprocessing function; and means for receiving pixel data from thesubstantially non-customizable hardware portion in a first color spaceformat and for receiving pixel data from the substantiallynon-customizable hardware portion in a second color space format,wherein the means is mask-programmable.
 21. The integrated circuit ofclaim 20, wherein the means includes an amount of mask-programmablelogic, and wherein the means is mask-programmed to perform a videoenhancement function.
 22. The integrated circuit of claim 21, whereinthe substantially non-customizable hardware portion includes a colorspace conversion circuit.